<include file="Public:pageheader" />
<table id="mytable" cellspacing="0" align="center"></table>
<caption>Tag : {$Think.lang.list_Graveyard}</caption>

<script>
function xuan()
{
    var a=new Array();
    var i;
    var c=0;
    for(i=0;i<document.getElementsByName("quanxuan[]").length;i++)
    {
	    if(document.getElementsByName("quanxuan[]")[i].checked)
	      {
		      a[c]=document.getElementsByName("quanxuan[]")[i].value;
		      c++;
	    }
    }
	if(a.length==0)
	{
	    alert("请选择");
	}
	else{
	  var ss=confirm("确定删除?");
	  if(ss==true)
	  {
	    location.href="__URL__/delete/id/"+a;
	  }
	}
}

function edit()
{
    var a=new Array();
    var i;
    var c=0;
    for(i=0;i<document.getElementsByName("quanxuan[]").length;i++)
    {
	    if(document.getElementsByName("quanxuan[]")[i].checked)
	      {
		      a[c]=document.getElementsByName("quanxuan[]")[i].value;
		      c++;
	    }
    }
	if(a.length==1)
	{
		location.href="__URL__/edit/id/"+a;
	}
	else{
	  alert("选择一条");
	}
}
</script>
<form action="__URL__/index" method="post">
<div align="center">
<include file="Public:linkage" />        
<input type='submit'class="button" value='查询'/> 
</div>
<input type="button" class="button"value="墓地验收" onclick="window.location.href='__URL__/check'"/>
<input type="button" class="button"value="墓位定价" onclick="window.location.href='__APP__/Price/index'"/>
<h4>所在位置：{$qu.name}</h4>
<div class="mudi_box">
<input type="button" class="button"value="新增排" onclick="window.location.href='__URL__/addrow/id/{$id}'"/>
<input type="button" class="button"value="修改排" onclick="window.location.href='__URL__/editrow/id/{$id}'"/>
<input type="button" class="button"value="新增号" onclick="window.location.href='__URL__/add/id/{$id}'"/>
<input type="button" class="button"value="修改号" onclick="javascript:edit()"/>
<input type="button" class="button"value="全选" onclick="ck(true)"/>		
<input type="button" class="button"value="取消全选" onclick="ck(false)"/>
<input type="button" class="button"value="删除" onclick="javascript:xuan()"/>
<div class="mudi_con">

	<volist name='groupname' id='pai'>
		<table border="0" cellspacing="20" cellpadding="0">
		  <tr>
			<td valign="top"><font>{$pai.name}:</font></td>
			<td align="center">
			<iterate name="list" id="v">
					<if condition="$v.district_id eq $pai['id']">						
						<div class="checkMD">								
							<div class="mudi_check">
								<div class="con">
									<div class="mu"><img src="__PUBLIC__/images/mudi{$v.multi_id}.gif" /></div>
									<div class="rmb"><img src="__PUBLIC__/images/rmb{$v.state_id}.gif" /></div>	
								</div>
							</div>
						<input name="quanxuan[]" type="checkbox" value="{$v.id}" align="middle" class="check"/>
						</div>	
					</if>
				</iterate>              
			</td>
		  </tr>
		</table>
</volist>	
</div>

        <div class="tuli">
        	<table width="100%" border="0" cellspacing="10" cellpadding="0" height="83">
              <tr>               
				<th><img src="__PUBLIC__/images/tuli1.gif" /></th>
                <td>修建中</td>
                <th><img src="__PUBLIC__/images/tuli2.gif" /></th>
                <td>未验收</td>
                <th><img src="__PUBLIC__/images/tuli3.gif" /></th>
                <td>未定价</td>
                <th><img src="__PUBLIC__/images/tuli6.gif" /></th>
                <td>销售中</td>
				<th><img src="__PUBLIC__/images/tuli7.gif" /></th>
                <td>已预订</td>
                <th><img src="__PUBLIC__/images/tuli8.gif" /></th>
                <td>已卖出</td>
                <th><img src="__PUBLIC__/images/tuli12.gif" /></th>
                <td>树木</td>
                
              </tr>
            </table>
        </div>
    </div>
</form>

<include file="Public:footer" />